package cn.wolfcode.ssm.qo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
@NoArgsConstructor
public class JsonResult {

    private boolean success = true;//给定默认值为true
    private String msg;//返回信息
    private Object data;

    public JsonResult(boolean success) {
        this.success = success;
    }
    public JsonResult(boolean success,String msg) {
        this.success = success;
        this.msg = msg;
    }
}
